"""meiduo_mall URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
import xadmin
# from django.contrib import admin
from django.urls import path, include

urlpatterns = [
    # path("admin/", admin.site.urls),
    path('admin/', xadmin.site.urls),
    path("", include("apps.verifications.urls")),  # 短信验证码
    path("user/", include("apps.users.urls")),  # 用户模块
    path("oauth/", include("apps.oauth.urls")),  # QQ路由
    path("areas/", include("apps.areas.urls")),  # 省市区
    path("ckeditor/", include("ckeditor_uploader.urls")),  # 富文本编辑器
    path("contents/", include("apps.contents.urls", namespace="contents")),
    path("goods/", include("apps.goods.urls", namespace="goods")),  # 商品
    path("carts/", include("apps.carts.urls")),  # 购物车
    path("orders/", include("apps.orders.urls")),  # 订单
    path("payment/", include("apps.payment.urls")),  # 支付
]
